package cn.yh.register.client.hosp;

import cn.yh.register.vo.hosp.ScheduleOrderVo;
import cn.yh.register.vo.order.SignInfoVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("service-hosp")
public interface HospFeignClient {

    /**
     * 获取订单上的排班数据
     * @param scheduleId 排班id
     * @return 排班数据
     */
    @GetMapping("/api/hosp/hospital/inner/getScheduleOrderVo/{scheduleId}")
    ScheduleOrderVo getScheduleOrderVo(@PathVariable String scheduleId);

    /**
     * 获取医院基础路径 签名信息
     * @param hoscode 医院编号
     * @return 签名信息
     */
    @GetMapping("/api/hosp/hospital/inner/getSignInfoVo/{hoscode}")
    SignInfoVo getSignInfoVo(@PathVariable String hoscode);
}
